{template Public:Page:header}
<link href="/assets/css/dataTables.bootstrap.css" rel="stylesheet" />

<div class="container">
  <div class="row"> 
  {template Member:Index:sidebar}
    <div class="col-lg-10 well-col-pl-30">
      <div class="row">
        <div class="well">
          <h3>充值</h3>
          
         <div style="margin-left:2px;">
              <ul id="PayTab" class="nav nav-tabs tabs-flat">
                <li>
                    <a href="/member/payin/index">
                        支付宝
                    </a>
                </li>
                <li>
                    <a href="/member/payin/tenpay">
                        财付通
                    </a>
                </li>
                <li class="active">
                    <a href="/member/payin/list">
                       充值记录
                    </a>
                </li>
            </ul>
         </div>
        
        <div class="tab-content tabs-flat"><div class="tab-pane in active">

			<table id="editabledatatable" class="table table-striped table-hover table-bordered dataTable no-footer" aria-describedby="editabledatatable_info">
                <thead>
                  <tr role="row">
 
                      {foreach $orderarr $key=>$value}
                      <th onClick="window.location.href='{echo U(MODULE_NAME.'/'.CONTROLLER_NAME.'/'.ACTION_NAME.'/sqlorder/'.$key.'/iforder/'.$iforder.'/p/'.$pagenum)}'" tabindex="0" aria-controls="editabledatatable" rowspan="1" colspan="1"  aria-sort="ascending" aria-label="{echo $value['name']}" {if $key==$sqlorder} {if $iforder==2}  class="sorting_desc"{else} class="sorting_asc"{/if}{else} class="sorting"{/if}> {echo $value['name']} </th>
                      {/foreach}
                  </tr>
                </thead>
                <tbody>
                
                {if $list}    
                {foreach $list $value}
                <tr>
                  <td>{echo $value['id']}</td>
                  <td>{echo FormatDate('Y/m/d H:i:s',$value['dateline'])}</td>
                  <td>{echo $value['subject']}{if $value['dataid']} <a href="/task/{echo $value['dataid']}" target="_blank">[查看任务]</a>{/if}</td>
                  <td><span class="color_f60">￥{echo $value['amount']/100}</span></td>
                  <td>
                  {if $value['process']==1}
                  <span class="label label-default">等待付款</span>
                  {elseif $value['process']==2}
                   <span class="label label-info">已付款</span>
                  {elseif $value['process']==3} 
                   <span class="label label-sky">等待确认</span>
                  {elseif $value['process']==4} 
                   <span class="label label-danger">退款中</span>
                  {elseif $value['process']==5} 
                   <span class="label label-success">交易成功</span>
                   {elseif $value['process']==6} 
                   <span class="label label-default">关闭订单</span>
                   {/if}
                  </td>
                  <td>
                 {if $value['process']!=5}<a href="/post/consume/payin/type/{echo $value['bankcard']}/id/{echo $value['id']}" target="_blank" class="btn btn-darkorange btn-sm">充值</a>{/if}
                  </td>
                </tr>
                {/foreach}
                
                {/if}
                  </tbody>
                
              </table>

		
          </div>

          </div>
          
          <br />
              <div class="row">
              	 <div class="col-lg-12">
             	 <div class="dataTables_paginate paging_bootstrap text-right">
                    <ul class="pagination">
                      {if $page}{echo $page}{/if}
                    </ul>
                  </div>
                  </div>
			  </div>
         
          
          <br />
 


          
        </div>
      </div>
    </div>
  </div>
</div>

{template Public:Page:footer}